package com.tengju.user.domain.model.sign;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum LicenseType {

    IDCARD(1,"身份证"),
    SOCIAL_CREDIT(2,"统一社会信用编码"),
    ;

    Integer val;
    String desc;

    public static LicenseType fromVal(Integer val) {
        for (LicenseType type : values()) {
            if (type.val.equals(val)) {
                return type;
            }
        }
        return null;
    }

}
